<%@ Control Language="C#" AutoEventWireup="true" CodeFile="wucPaging.ascx.cs" Inherits="Modules_WebsiteFrontSub_wucPaging" %>

<script language="javascript" type="text/javascript">
    function GoToPage()
    {
        //window.location="#Top";
        window.scrollTo(200,200); 
        return false;       
    }
</script>

<asp:Table CellPadding="0" CellSpacing="0" BorderWidth="0" ID="PagingObjectContainer"
    runat="server">
    <asp:TableRow>
        <asp:TableCell ID="NavigatorObjectFirstContainer" runat="server">
            <asp:ImageButton ID="ibtnFirst" runat="server" OnClick="ibtnFirst_Click" OnClientClick="GoToPage();"/>
            <asp:LinkButton ID="lbtnFirst" runat="server" OnClick="lbtnFirst_Click" OnClientClick="GoToPage();"></asp:LinkButton>
        </asp:TableCell>
        <asp:TableCell ID="NavigatorObjectPrevContainer" runat="server">
            <asp:ImageButton ID="ibtnPrev" runat="server" OnClick="ibtnPrev_Click" OnClientClick="GoToPage();"/>
            <asp:LinkButton ID="lbtnPrev" runat="server" OnClick="lbtnPrev_Click" OnClientClick="GoToPage();"></asp:LinkButton>
        </asp:TableCell>
        <asp:TableCell ID="NavigatorObjectNumericContainer" runat="server">
            <asp:DataList ID="NumericSectionNumericList" RepeatDirection="Horizontal" runat="server"
                OnItemCommand="NumericSectionNumericList_ItemCommand" OnItemDataBound="NumericSectionNumericList_ItemDataBound">
                <ItemTemplate>
                    <asp:Table runat="server" ID="tblItemContentContainer">
                        <asp:TableRow>
                            <asp:TableCell HorizontalAlign="center" VerticalAlign="middle">
                                <asp:LinkButton ID="lbtnPaging" CommandArgument='<%#Eval("PageIndex") %>' Text='<%#Eval("PageText") %>'
                                    CommandName="Paging" runat="server" OnClientClick="GoToPage();"></asp:LinkButton>
                            </asp:TableCell>
                        </asp:TableRow>
                    </asp:Table>
                </ItemTemplate>
            </asp:DataList>
            <asp:Table runat="server" ID="NumericSectionCurrentTotalPage">
                <asp:TableRow>
                    <asp:TableCell HorizontalAlign="center" VerticalAlign="middle">
                        <asp:Label ID="lblPagesCurrent" runat="server">&nbsp;</asp:Label><asp:Label ID="lblPagesCurrentTotalSeperator"
                            runat="server">&nbsp;</asp:Label><asp:Label ID="lblPagesTotal" runat="server"></asp:Label></asp:TableCell>
                </asp:TableRow>
            </asp:Table>
            <asp:Table runat="server" ID="NumericSectionCurrentTotalRecord">
                <asp:TableRow>
                    <asp:TableCell HorizontalAlign="center" VerticalAlign="middle">
                        <asp:Label ID="lblRecordsCurrent" runat="server">&nbsp;</asp:Label><asp:Label ID="lblRecordsCurrentTotalSeperator"
                            runat="server">&nbsp;</asp:Label><asp:Label ID="lblRecordsTotal" runat="server"></asp:Label></asp:TableCell>
                </asp:TableRow>
            </asp:Table>
        </asp:TableCell>
        <asp:TableCell ID="NavigatorObjectNextContainer" runat="server">
            <asp:ImageButton ID="ibtnNext" runat="server" OnClick="ibtnNext_Click" OnClientClick="GoToPage();"/>
            <asp:LinkButton ID="lbtnNext" runat="server" OnClick="lbtnNext_Click" OnClientClick="GoToPage();"></asp:LinkButton>
        </asp:TableCell>
        <asp:TableCell ID="NavigatorObjectLastContainer" runat="server">
            <asp:ImageButton ID="ibtnLast" runat="server" OnClick="ibtnLast_Click" OnClientClick="GoToPage();"/>
            <asp:LinkButton ID="lbtnLast" runat="server" OnClick="lbtnLast_Click" OnClientClick="GoToPage();"></asp:LinkButton>
        </asp:TableCell>
    </asp:TableRow>
</asp:Table>
